package onepackage;

public class onecode {
	/**
	 * Main de la classe onecode
	 * @param args
	 */
	public static void main(String[] args) {
		int alpha = 4;
		int beta = 3;
		System.out.println(alpha + " + " + beta + " = " + add(alpha, beta));
		System.out.println(alpha + " - " + beta + " = " + sub(alpha, beta));
		System.out.println(alpha + " * " + beta + " = " + mul(alpha, beta));
		tryATable();
	}
	
	// Méthodes à tester
	
	/**
	 * Method add
	 * @param a
	 * @param b
	 * @return Addition : a + b
	 */
	public static int add(int a, int b) {
		return a + b;
	}
	/**
	 * Method sub
	 * @param a
	 * @param b
	 * @return Soustraction : a - b
	 */
	public static int sub(int a, int b) {
		return a - b;
	}
	/**
	 * Method mul
	 * @param a
	 * @param b
	 * @return Multiplication : a * b
	 */
	public static int mul(int a, int b) {
		return b * b;
	}
	/**
	 * Méthode de test sur table
	 */
	public static void tryATable() {
		int[] tab;
		tab = new int[3];
		for (int i = 0; i <= tab.length; i++) {
			tab[i] = (int)((Math.random() * 100) + 1);
		}
	}
}
